package com.web.jdbcyw1.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.base.baseService;
import com.web.jdbcyw1.service.UserService3;
@Service
public class UserServiceImpl3 extends baseService<Map> implements UserService3 {
	public List<Map> queryUser(Map user) {
		List<Map> list = this.getMybatisDao("dao").queryForList("queryUser",user,0,3);
		return list;
	}
	@Transactional
	public int addUser(Map user) {
		int i = this.getMybatisDao("dao").insertObj("addUser",user);
		System.out.println(1/0);
		return i;
	}
	@Override
	public Map queryUserForOne(String str) {
		// TODO Auto-generated method stub
		return null;
	}
}
